package com.itheima.userservice.service;

import com.itheima.userservice.bean.MsgVo;
import com.itheima.userservice.mapper.MsgServiceMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MsgServiceImpl implements MsgService{

    @Autowired
    private MsgServiceMapper msgServiceMapper;

    @Override
    public int add(MsgVo msgVo) {
        return msgServiceMapper.add(msgVo);
    }

    @Override
    public int updateStatus(MsgVo msgVo) {
        return msgServiceMapper.updateStatus(msgVo);
    }

}
